package Entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.persistence.*;

@Entity
@Table (name = "StockInsumo")
public class StockInsumoEntity implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@Id
	@Column (name = "IdStockInsumo")
	private int id;
	
	@Column (name = "Cantidad")
	private int cantidad;
	
	@ManyToOne
	@JoinColumn  (name = "idDeposito")
	private DepositoEntity deposito;
	
	@OneToOne
	@JoinColumn (name = "idInsumo")
	private InsumoEntity Insumo;
	
	

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getCantidad() {
		return cantidad;
	}

	public void setCantidad(int cantidad) {
		this.cantidad = cantidad;
	}

	public DepositoEntity getDeposito() {
		return deposito;
	}

	public void setDeposito(DepositoEntity deposito) {
		this.deposito = deposito;
	}
	
}
